#include <iostream>

using namespace std;

int main()
{
    int n;
    cin >> n;
    int inp;
    int tmp = 0, ans = 0, pre = 0;
    for (int i=0; i<n; ++i)
    {
        cin >> inp;
        if (inp > pre)
        {
            pre = inp;
            ++tmp;
        }
        else
        {
            pre = inp;
            ans = tmp > ans ? tmp : ans;
            tmp = 1;
        }
    }
    cout << ans;
    return 0;
}
